<script type="text/javascript">
function odczytaj()
{
  var div1 = document.getElementById("div1");
  var str = "background-color:" + div1.style.backgroundColor;
  str += ";width:" + div1.style.width;
  str += ";height:" + div1.style.height;
  alert(str);
}
function przypisz()
{
  var div1 = document.getElementById("div1");
  div1.style.backgroundColor = "#A0A0A0";
}
function usun()
{
  var div1 = document.getElementById("div1");
  div1.style.backgroundColor = "";
}
</script>